package com.dragon.modules.yuegou.model.system;

import com.dragon.modules.yuegou.entity.system.UniappOpenidRefEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * uniapp openid 手机号 关系表模型类
 * 
 * @author pbuilder generated
 * @date 2022-11-09 11:09:28
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class UniappOpenidRef extends UniappOpenidRefEntity {

	/**
	 * 构造一个空uniapp openid 手机号 关系表模型对象
	 */
	public UniappOpenidRef(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个uniapp openid 手机号 关系表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public UniappOpenidRef(UniappOpenidRefEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个uniapp openid 手机号 关系表模型对象
	 * 
	 * @param other 其它对象
	 */
	public UniappOpenidRef(UniappOpenidRef other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public UniappOpenidRef id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getMobile() {
    	return mobile;
    }

    /**
	 * 设置绑定的手机号码
	 * 
	 * @param mobile 绑定的手机号码
	 * @return 当前对象
	 */
    public UniappOpenidRef mobile(String mobile) {
    	this.mobile = mobile;
    	return this;
    }

	@Override
	public String getUniappOpenId() {
    	return uniappOpenId;
    }

    /**
	 * 设置
	 * 
	 * @param uniappOpenId 
	 * @return 当前对象
	 */
    public UniappOpenidRef uniappOpenId(String uniappOpenId) {
    	this.uniappOpenId = uniappOpenId;
    	return this;
    }

	@Override
	public String getAppid() {
    	return appid;
    }

    /**
	 * 设置第三方 appid
	 * 
	 * @param appid 第三方 appid
	 * @return 当前对象
	 */
    public UniappOpenidRef appid(String appid) {
    	this.appid = appid;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置
	 * 
	 * @param createdTime 
	 * @return 当前对象
	 */
    public UniappOpenidRef createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }
}
